package com.hrh.selectsystem.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hrh.selectsystem.model.dto.file.MentorExcelImport;
import com.hrh.selectsystem.model.dto.mentor.MentorQueryRequest;
import com.hrh.selectsystem.model.entity.Mentor;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hrh.selectsystem.model.vo.mentor.MentorByStudentVO;

import java.util.List;

/**
* @author hetongxue
* @description 针对表【mentor(导师)】的数据库操作Mapper
* @createDate 2024-10-23 11:30:03
* @Entity com.hrh.selectsystem.model.entity.Mentor
*/
public interface MentorMapper extends BaseMapper<Mentor> {

    /**
     * 导师批量导入
     * @param mentorExcelList
     */
    void saveMentorBatch(List<MentorExcelImport> mentorExcelList);

    /**
     * 更新导师已选人数
     * @param mentorId
     * @param newQuota
     */
    void updateSelectedQuota(Long mentorId, Integer newQuota);

    /**
     * 根据账号查询id
     * @param mentoraccount
     * @return
     */
    Long selectIdByAccount(String mentoraccount);


}




